<template>
  <ul class="left" style="margin-right:10%;justify-content:flex-start;">
    <li v-for="(item, index) in leftList" :key="index" @click="jump(item.name)">
    {{ item.name }}
    </li>
  </ul>
</template>

<script>
export default {
  data() {
    return {
      leftList: [
        { name: "主页" },
        { name: "故事集" },
        { name: "漫画集" },
        { name: "影集" },
        { name: "v-log" },
      ],
    };
  },
  methods:{
    jump(val){
      if(val=="主页")
      this.$router.push('/main')
    }
  }
};
</script>

<style lang="less" scoped>
.left {
  display: flex;
  list-style: none;
  width: 40%;
  li {
    width: 80px;
    height: 60px;
    color: #fff;
    font-size: 14px;
    font-weight: 400;
    line-height: 60px;
    text-align: center;
    cursor: pointer;
  }
}
</style>
